import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user.js'


Vue.use(Vuex)

/*
1.全局模块状态用
2.不同模块使用不同的js
3.actions和 mutations 方法名
*/
const state = {
  share: {
    count: 0,
  }
}

const mutations = {

}

const actions = {

}
export default new Vuex.Store({
  state: state,
  mutations: mutations,
  actions: actions,
  modules: {
    user
  }
})
